WeDevs\Dokan\Commission\RecalculateCommissions S

Total Complexity 42
Dependencies 9
Dependents 0
Total lines 332
Lines of code 198
Logical lines of code 129
Comment lines 71
Methods 12
Properties 0

Methods 12

Method Rating Maintainability Complexity Lines of code
remove_order_coupon()
A
44 11 41
adjust_admin_commission_and_vendor_earning()
S
45 5 43
remove_order_tax()
S
51 5 25
adjust_admin_commission_and_vendor_earning_after_coupon_removed()
S
61 5 13
__construct()
S
51 4 25
add_coupon_discount()
S
53 3 21
recalculate_commission_when_any_new_line_item_added()
S
71 2 6
recalculate_commission_when_any_line_item_edited()
S
71 2 6
recalculate_commission_when_any_line_item_removed()
S
71 2 6
overwrite_woocommerce_remove_order_tax_method()
S
75 1 4
overwrite_woocommerce_remove_order_coupon_method()
S
75 1 4
overwrite_woocommerce_add_coupon_discount_method()
S
75 1 4